package pub.tbc.atps.task;

import pub.tbc.toolkit.Objs;

/**
 * @author tbc on 2016/11/13 1:28.
 */
public enum ParamType {
    HTTP_PARAM,
    PATH_PARAM,
    ENTITY_PARAM;

    /**
     * 参数类型可以为空，代表无参数
     *
     * @param paramType .
     * @return .
     */
    public static ParamType getParamType(String paramType) {
        switch (paramType) {
            case "http_param":
                return HTTP_PARAM;
            case "path_param":
                return PATH_PARAM;
            case "entity_param":
                return ENTITY_PARAM;
            default:
                return null;
        }
    }
}
